package com.cskaoyan.service;


import com.cskaoyan.bean.MarketGoods;
import com.cskaoyan.bean.MarketGoodsAttribute;
import com.cskaoyan.bean.MarketGoodsProduct;
import com.cskaoyan.bean.MarketGoodsSpecification;
import com.cskaoyan.bean.bo.AdminGoodsCreateBo;
import com.cskaoyan.bean.common.BasePageInfo;
import com.cskaoyan.bean.common.CommonData;
import com.cskaoyan.bean.vo.AdminGoodsDetailVo;
import com.cskaoyan.bean.vo.goods.brand.BrandListBean;
import com.cskaoyan.bean.vo.goods.brand.CategoryListBean;

import java.util.List;

public interface GoodsService {


    CommonData<MarketGoods> getList(BasePageInfo info, Integer goodsId, String goodsSn, String name);

    List<BrandListBean> getBrand();

    List<CategoryListBean> getcategory();

    void deleteGoods(MarketGoods marketGoods);

    AdminGoodsDetailVo getDetail(Integer id);

    void updateGoods(MarketGoods goods, List<MarketGoodsAttribute> attributes, List<MarketGoodsProduct> products, List<MarketGoodsSpecification> specifications);

    int createGoods(AdminGoodsCreateBo goodsCreateBO);
}
